Skip to content

Conversation

@goodchong
Copy link
Collaborator

@goodchong goodchong commented Nov 28, 2024

What's changed?

  • The original hash + linked list data structure was replaced by the standard template library.
  • The neighbor list of each atom records a pointer to the FAtom in CellSet memory. It is stored as std::list<FAtom *> adjacent. the data structure of adjacentset been removed.
  • In the previous code, several situations were distinguished according to the pbc flag and expand flag, and the ambiguity caused by variable reuse has been improved.

Any changes of core modules? (ignore if not applicable)

  • module_neighbor

@goodchong goodchong marked this pull request as draft November 28, 2024 10:03
@goodchong goodchong self-assigned this Dec 2, 2024
@goodchong goodchong marked this pull request as ready for review December 2, 2024 06:19
@mohanchen mohanchen added the Refactor Refactor ABACUS codes label Dec 2, 2024
@mohanchen mohanchen merged commit a43cbfb into deepmodeling:develop Dec 2, 2024
14 checks passed
@goodchong goodchong deleted the neighbor2 branch December 4, 2024 05:35
Fisherd99 pushed a commit to Fisherd99/abacus-BSE that referenced this pull request Mar 31, 2025
…dard Template Library (deepmodeling#5642)

* A highly aggressive change: replaced the original atomlink data structure with the Standard Template Library.

* fix unittest errors

* [pre-commit.ci lite] apply automatic fixes

* fix a adj set clear bug and add self to adj list

* use vector to refactor Cellset varible

* remove adjacent set, replaced by std list

* remove set fatom

* [pre-commit.ci lite] apply automatic fixes

* use 2 layers vector replace undered_map to improve perfermance

* remove a lot useless variable

* remove some useless variables

* refresh unit test to code logic

* [pre-commit.ci lite] apply automatic fixes

* fix a bug to force quit when test

* fresh unit test according to latest code logic

---------

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants